import * as API from './index'

export const getUsersInfo = (params)=>{
    return API.GET('/api/v1/admin/users',params)
}

//新增用户
export const addUserInfo = (params)=>{
    return API.POST('/api/v1/admin/users',params)
}

//修改用户
export const editUserInfo = (params)=>{
    return API.PUT('/api/v1/admin/users/'+params.id,params)
}

//删除用户
export const DeleteUsersInfo = (params)=>{
    return API.DELETE('/api/v1/admin/users/'+params)
}

//获取当个用户
export const getUser = (params)=>{
    return API.GET('/api/v1/admin/users/'+params)
}